{layout name="layout" /}

<div class="box">
  <div class="newsbox f_l ">
    <div class="newstitle"><span><a href="{:url('/lists/1/1')}">+</a></span><b>PHP</b></div>
    <ul class="newsli">
      {foreach $php_data as $val}
      <li><a href="/read/{$val.id}" title="{$val.title}">{$val.title}</a></li>
      {/foreach}
    </ul>
  </div>
  <div class="newsbox f_r ">
    <div class="newstitle"><span><a href="{:url('/lists/2/1')}">+</a></span><b>学习笔记</b></div>
    <ul class="newsli">
        {foreach $notes_data as $val}
        <li><a href="/read/{$val.id}" title="{$val.title}">{$val.title}</a></li>
        {/foreach}
    </ul>
  </div>
  <div class="blank"></div>
  <div class="sbox f_l"> <span>PHP</span>
    <h2>{$php_top.title}</h2>
    <p>{$php_top.summary}</p>
    <a href="{notempty name='php_top'}/read/{$php_top['id']}{else/}javascript:void(0);{/notempty}" title="{$php_top.title}" class="read">点击阅读</a>
  </div>
  <div class="sbox f_l ml"> <span>学习笔记</span>
    <h2>{$notes_top.title}</h2>
    <p>{$notes_top.summary}</p>
    <a href="{notempty name='notes_top'}/read/{$notes_top['id']}{else/}javascript:void(0);{/notempty}" title="{$notes_top.title}"  class="read">点击阅读</a>
  </div>
  <div class="sbox f_r"> <span> 杂项 </span>
    <h2>{$other_top.title}</h2>
    <p>{$other_top.summary}</p>
    <a href="{notempty name='other_top'}/read/{$other_top['id']}{else/}javascript:void(0){/notempty}" title="{$other_top.title}"  class="read">点击阅读</a>
  </div>
  <div class="blank"></div>
  <div class="blogs">
    {foreach $lists as $val}
    <div class="bloglist">
      <h2><a href="/read/{$val.id}" title="{$val.title}">{$val.title}</a></h2>
      <p>{$val.summary}</p>
    </div>
    {/foreach}
  </div>
  {include file="aside"}
</div>